<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateRelatosTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('relatos', function(Blueprint $table)
		{
			$table->increments('id');
			$table->string('titulo', 90);
                        $table->text('bajada');
			$table->text('texto');
			$table->string('slug', 105);
                        $table->smallInteger('position')->unsigned()->index();
                        $table->boolean('estado');
//			$table->timestamps();
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('relatos');
	}

}
